package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 检查项目对象 Item
 *
 * @author ruoyi
 * @date 2023-07-04
 */


@TableName("Item")
@ApiModel(value = "Item对象", description = "检查项目")
public class Item implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id")
    @ApiModelProperty("id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long Id;

    /**
     * 项目编码
     */
    @Excel(name = "项目编码")
    @ApiModelProperty("项目编码")
    @TableField("ItemCode")
    private String ItemCode;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    @ApiModelProperty("项目名称")
    @TableField("ItemName")
    private String ItemName;

    /**
     * 单位
     */
    @Excel(name = "单位")
    @ApiModelProperty("单位")
    @TableField("Unit")
    private String Unit;

    /**
     * 单价
     */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    @TableField("Price")
    private BigDecimal Price;

    /**
     * 执行科室id
     */
    @Excel(name = "执行科室id")
    @ApiModelProperty("执行科室id")
    @TableField("DeptId")
    private Long DeptId;

    /**
     * 拼音助记码
     */
    @ApiModelProperty("拼音助记码")
    @TableField("MnemonicCode")
    private String MnemonicCode;

    /**
     * 删除标记
     */
    @ApiModelProperty("删除标记")
    @TableField("DelMark")
    private Long DelMark;

    @JsonProperty("Id")
    public Long getId() {
        return Id;
    }

    public void setId(Long Id) {
        this.Id = Id;
    }

    @JsonProperty("ItemCode")
    public String getItemCode() {
        return ItemCode;
    }

    public void setItemCode(String ItemCode) {
        this.ItemCode = ItemCode;
    }

    @JsonProperty("ItemName")
    public String getItemName() {
        return ItemName;
    }

    public void setItemName(String ItemName) {
        this.ItemName = ItemName;
    }

    @JsonProperty("Unit")
    public String getUnit() {
        return Unit;
    }

    public void setUnit(String Unit) {
        this.Unit = Unit;
    }

    @JsonProperty("Price")
    public BigDecimal getPrice() {
        return Price;
    }

    public void setPrice(BigDecimal Price) {
        this.Price = Price;
    }

    @JsonProperty("DeptId")
    public Long getDeptId() {
        return DeptId;
    }

    public void setDeptId(Long DeptId) {
        this.DeptId = DeptId;
    }

    @JsonProperty("MnemonicCode")
    public String getMnemonicCode() {
        return MnemonicCode;
    }

    public void setMnemonicCode(String MnemonicCode) {
        this.MnemonicCode = MnemonicCode;
    }

    @JsonProperty("DelMark")
    public Long getDelMark() {
        return DelMark;
    }

    public void setDelMark(Long DelMark) {
        this.DelMark = DelMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("Id", getId())
                .append("ItemCode", getItemCode())
                .append("ItemName", getItemName())
                .append("Unit", getUnit())
                .append("Price", getPrice())
                .append("DeptId", getDeptId())
                .append("MnemonicCode", getMnemonicCode())
                .append("DelMark", getDelMark())
                .toString();
    }
}

